package org.jeecg.modules.wmhb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wmhb.entity.WmContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 合同表
 * @Author: jeecg-boot
 * @Date:   2024-09-02
 * @Version: V1.0
 */
public interface WmContractMapper extends BaseMapper<WmContract> {
    /**
     * 检查合同编码是否唯一
     * @param wmContract
     * @return
     */
    public WmContract checkCodeUnique(WmContract wmContract);

    /**
     * 检查合同名称是否唯一
     * @param wmContract
     * @return
     */
    public WmContract  checkNameUnique(WmContract wmContract);

    /**
     * 检查合同下是否有任务书
     * @param id
     * @return
     */
    public Integer hasItemById(String id);
}
